<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class OmmonConfig extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::dropIfExists('common_config');
        Schema::create('common_config', function (Blueprint $table){
            $table->comment = "系统配置表";
            $table->increments('id')->comment("ID");
            $table->string("config_name")->comment("配置名称");
            $table->string("config_alias")->comment("配置别名");
            $table->text("config_value")->comment("配置内容");
            $table->integer('create_time')->comment("创建时间");
            $table->integer('update_time')->comment("更新时间");
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
